use ormlite::Model;
use serde::{Deserialize, Serialize};

#[derive(Model, Debug, Clone, Serialize, Deserialize)]
pub struct WechatUserType {
    #[ormlite(primary_key)]
    pub type_id: Option<i64>,
    pub name: Option<String>,
    pub grant: Option<i8>,
    pub max_count: Option<i64>,
    pub max_minute_count: Option<i64>,
    pub wxid_count: Option<i64>,
    pub integral: Option<i64>,
}

#[derive(Deserialize)]
pub struct WechatUserTypePageReq {
    pub type_id: Option<i64>,
    pub name: Option<String>,
    pub page_no: Option<i64>,
    pub page_size: Option<i64>,
}